if [ ! -d /log/was/{###SERVER_NAME###}/accesslog ]; then
    mkdir -p /log/was/{###SERVER_NAME###}/accesslog
    ln -s /log/was/{###SERVER_NAME###}/accesslog accesslog
fi

if [ ! -d /log/was/{###SERVER_NAME###}/nohup ]; then
    mkdir -p /log/was/{###SERVER_NAME###}/nohup
    ln -s /log/was/{###SERVER_NAME###}/nohup nohup
fi

if [ ! -d /log/was/{###SERVER_NAME###}/nohup ]; then
    mkdir -p /log/was/{###SERVER_NAME###}/log
    ln -s /log/was/{###SERVER_NAME###}/log log
fi

mv start.sh start{###SERVER_NAME###}.sh
mv stop.sh stop{###SERVER_NAME###}.sh

chmod u+x *.sh
chmod -R og-rwx conf deploy
